package com.iqiyi.pps.epg.core.model.record;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by hejia on 2018/4.
 */
@Entity
@Table(name = "record_signal")
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class RecordSignal {
    private long id;
    private String signalName;
    private String signalAddress;
    private int priority;
    private String serverCluster;
    private String opUser;
    private Timestamp createTime;
    private Timestamp updateTime;
    private int status;


    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }


    @Column(name = "signal_name")
    public String getSignalName() {
        return signalName;
    }

    public void setSignalName(String signalName) {
        this.signalName = signalName;
    }

    @Column(name = "signal_address")
    public String getSignalAddress() {
        return signalAddress;
    }

    public void setSignalAddress(String signalAddress) {
        this.signalAddress = signalAddress;
    }

    @Column(name = "priority")
    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    @Column(name = "server_cluster")
    public String getServerCluster() {
        return serverCluster;
    }

    public void setServerCluster(String serverCluster) {
        this.serverCluster = serverCluster;
    }



    @Column(name = "op_user")
    public String getOpUser() {
        return opUser;
    }

    public void setOpUser(String opUser) {
        this.opUser = opUser;
    }

    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Column(name = "update_time", insertable = false, updatable = false)
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }



    @Column(name = "status")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

}
